/************************************************************************
 *				SRLOS Team CopyRight
 *@file		commdef.h
 *@author	bloceanc
 *@date		7/16/2010
 *@note		system common macros
 ************************************************************************/

#ifndef	_COMMDEF_H_
#define	_COMMDEF_H_

#include "os_config.h"

#define	NULL	0x00000000	/* we need define this, this should defined in lib */
#define	COMM_MMU_SYSTEMPAGE_ADDRESS_PHY2VIR(__physical__)	(((unsigned int)__physical__)-K_CONFIG_SDRAM_START_PHYADDR)
#define	COMM_MMU_SYSTEMPAGE_ADDRESS_VIR2PHY(__virtual__)	(((unsigned int)__virtual__)+K_CONFIG_SDRAM_START_PHYADDR)

#endif	/* _COMMDEF_H_ */
